<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
  {{message}}
  <cpn1></cpn1>
  <cpn2></cpn2>
</div>
<script src="../js/vue.js"></script>
<script>
  Vue.component('cpn1',{
    template:`
    <div>
    <h2>asdfsad</h2>
    <p>gtynjtj</p>
    <div/>
    `
  })
  let app = new Vue({
    el:'#app',
    data:{
      message:'123',
      name:'321',
    },
    components:{'cpn2':{
      template:`
      <div>
      <h2>标题2<h2/>
      <p>阿萨达官方<p/>
      <div/>
      `
    }}
  })
</script>
</body>
</html>